<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>首页</title>
  <style>
    *,
    *::after,
    *::before {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      min-height: 100vh;
    }

    :root:focus-within {
      scroll-behavior: smooth;
    }

    body {
      min-height: inherit;
    }
  </style>
</head>

<body>
  <div></div>
</body>
<script>
  "use strict"; {
    let loadShaderFile = (fileName = "") => new Promise((resolve, reject) => {
      const XHR = new XMLHttpRequest()
      XHR.open("GET", fileName, true)
      XHR.addEventListener("readystatechange", () => {
        if (XHR.readyState === 4 && XHR.status == 200) {
          resolve(XHR.responseText)
        } else {
          reject("读取失败了")
        }
      })
      XHR.send()
    })

  };
</script>

</html>